<form class="form-horizontal" role="form" method="post" action="<?=site_url('product/addArticle/'.$product_id) ?>" enctype="multipart/form-data">  
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Tiêu đề</label>
    <div class="col-sm-3">
      <input id="codeInput" type="text" name="title" class="form-control" placeholder="Tiêu đề bài viết.." value="" required autofocus>
    </div>
  </div> 
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-3 control-label">Tải hình</label>
    <div class="col-sm-5">
      <input type="file" id="exampleInputFile" name="userfile">
      <p class="help-block"></p>
    </div>
  </div>      
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Bài viết</label>
    <div class="col-sm-3">
      <textarea class="form-control" rows="3" name="detail"></textarea>
    </div>
  </div>  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" name="addArticleBtn" value="add-all" class="btn btn-primary">Tạo bài viết</button>
    </div>
  </div>    
</form>